<!--
 * @Author: your name
 * @Date: 2019-12-15 23:16:29
 * @LastEditTime: 2019-12-17 00:12:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \frame\app\views\index.html
 -->
 <!DOCTYPE html>
 <html lang="en">
 <head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>我的留言板</title>
 </head>
 <body>
<h1>我的留言板</h1>
<a href="/index/add">添加留言</a>

<div>
    {% for val in data %}
    <p>{{ val.title }}</p>
    <p>{{ val.content }}</p>
    <p>{{ val.create_time|date('Y-m-d H:i:s') }}</p>
    <a href="/index/del/id/{{ val.id }}">删除留言</a>
    {% endfor %}
</div>
</body>
</html>